# Don't cause the server to break if Passenger module not loaded
<IfModule passenger_module>
	<VirtualHost *:80>
	  ServerName <%= domain %>
	  DocumentRoot "<%= passenger_document_root %>"
	  RailsEnv <%= rails_env %>
	  RailsAllowModRewrite <%= passenger_rails_allow_mod_rewrite %>

		AliasMatch (^/stylesheets/.*) "<%= passenger_document_root %>$1"
		AliasMatch (^/javascripts/.*) "<%= passenger_document_root %>$1"
		AliasMatch (^/images/.*) "<%= passenger_document_root %>$1"
		AliasMatch .* "<%= shared_path %>/system/maintenance.html"
	  <directory "<%= passenger_document_root %>">
	    Order allow,deny
	    Allow from all
	  </directory>
	</VirtualHost>
</IfModule>
